import glob
import numpy as np
# backup path = 

''' 
    Define File & Path
'''
folder_path = r'E:\3-DoF Interferometer\NMC Room\6 Dof PI\Rigid\Cam\Nonlinearity\SmarAct new test\ver_Scann_200urad_50s\Compare'
video_names = glob.glob(folder_path+'\*.avi')
np_result_names = glob.glob(folder_path+'\*.npy')


    
''' 
    Define Reading Range
'''
hor_index = 478
ver_index = 596

line_num = 101
scale_factor = 1
hor_lines = np.linspace(hor_index-scale_factor*(line_num-1)/2, hor_index+scale_factor*(line_num-1)/2, line_num, dtype='int')
ver_lines = np.linspace(ver_index-scale_factor*(line_num-1)/2, ver_index+scale_factor*(line_num-1)/2, line_num, dtype='int')